﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BDSync.Domains.Entities;

namespace BDSync.Domains.DBConn
{
    public interface IDBConnService
    {
        /// <summary>
        /// 插入
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        String Insert(DBConnObj entity);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool Update(DBConnObj entity);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool Delete(DBConnObj entity);

        /// <summary>
        /// 查找全部
        /// </summary>
        /// <returns></returns>
        IEnumerable<DBConnObj> FindAll();

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        bool Update(IEnumerable<DBConnObj> entities);
    }
}
